How can I fix the TypeError: ' โ€™ not supported between instances of 'str' and 'int' in Python